<!DOCTYPE html>
<html>
    <head>
        <? require_once 'header.php'; ?>
    </head>
    <body>
        <?
        getNavbar();
        ?>
        <div class="container-fluid">
            <div class="row-fluid" style="margin-top: 40px;">
                <h1 align="center"><? echo $this->getEvento()->getTitulo(); ?></h1>
            </div>
            <div class="row-fluid">
                <div class="span9">
                    <div class="navbar">
                        <div class="navbar-inner">
                            <a class="brand" href="#">Descrição</a>
                        </div>
                        <div class="container-fluid well">
                            <div class="span3">
                                <h3 align="center" style="margin: 0px;">Imagens</h3>
                                <?
                                $this->getImagensEvento($this->getEvento());
                                ?>
                            </div>
                            <div class="span9">
                                <p style="word-wrap: break-word;">
                                    <strong>Descrição:</strong><br>
                                    <?
                                    echo $this->getEvento()->getDescricao();
                                    ?>
                                </p>
                                <address>
                                    <strong><?php echo $this->getEvento()->getLocal()->getDescricao(); ?></strong><br>
                                    <?php echo "End. " . $this->getEvento()->getLocal()->getEndereco()->getDescricao(); ?><br>
                                    <?php echo $this->getEvento()->getLocal()->getCidade()->getNome() . ", " . $this->getEvento()->getLocal()->getCidade()->getEstado()->getNome() . "." ?><br>
                                    <abbr title="Telefone">Tel:</abbr> (123) 456-7890
                                </address>
                                <p>
                                    <strong>Data:</strong>
                                    <?
                                    echo $this->getEvento()->getData();
                                    ?>
                                    <br>
                                    <strong>Inicio:</strong>
                                    <? echo $this->getEvento()->getHoraInicio(); ?>
                                    <strong>Termino:</strong>
                                    <? echo $this->getEvento()->getHoraFim(); ?>
                                </p>
                                <a href="#" align="center" 
                                   onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(location.href), 'facebook-share-dialog', 'width=626,height=436');return false;">
                                    Compartilhar
                                </a>
<!--                                <span class='st_facebook_large' displayText='Facebook'></span>
                                <span class='st_twitter_large' displayText='Tweet'></span>
                                <span class='st_linkedin_large' displayText='LinkedIn'></span>
                                <span class='st_email_large' displayText='Email'></span>-->
                            </div>
                        </div>
                        <div class="navbar-inner">
                            <a class="brand" href="#">Lotes</a>
                        </div>
                        <div class="container-fluid well">
                            <? $this->getLotesEvento($this->getEvento()); ?>
                        </div>
                        <div class="navbar-inner">
                            <a class="brand" href="#">Comentarios</a>
                        </div>
                        <div class="container-fluid well">
                            <? 
                            $this->getNotaEvento();
                            $this->getComentariosEvento($this->getEvento(),3); 
                            $this->getTodosComentarios();
                            ?>
                        </div>
                    </div>
                </div>
                <div class="span3" align="center">
                    <div class="well">
                        <a href="/empresa/<? echo $this->getEvento()->getEmpresa()->getCodigo() ?>">
                            <h3 style="word-wrap: break-word;"><? echo $this->getEvento()->getEmpresa()->getNome(); ?></h3>
                            <!--<h6>UTFPR-MD</h6>-->
                            <? echo '<img class="img-polaroid" src="/img/' . ($this->evento->getEmpresa()->getImagemPrincipal()->getImagem()) . '" alt="photo">'; ?> 
                        </a>
                    </div>
                    <div class="navbar">
                        <div class="navbar-inner">
                            <a class="brand" href="#">Confirmados</a>
                        </div>
                        <div class="container-fluid well">
                            <?
                            $this->getConfirmados($this->evento);
                            ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?
        require_once 'footer.php';
        ?>
    </body>
</html>
